<!--[if lte IE 8]>
<script type="text/javascript" src="__PUBLIC__/ui/chart/excanvas.js"></script>
<![endif]-->
</head>
<body>
<div class="g-home-top s-home-top">
	<div class="m-home-top-list s-home-top-list">
		<ul>
			<li><span class="icon">&#xf115;</span> 栏目数：<span class="u-label u-label-info"><?php echo model('category')->category_count(); ?></span></li>
			<li><span class="icon">&#xf0f6;</span> 内容数：<span class="u-label u-label-info"><?php echo model('content')->content_count(); ?></span></li>
			<li><span class="icon">&#xf108;</span> 文件数：<span class="u-label u-label-info"><?php echo api('editor','file_count'); ?></span></li>
			<li><span class="icon">&#xf108;</span> TAG数：<span class="u-label u-label-info"><?php echo api('tags','tags_count'); ?></span></li>
		</ul>
	</div>
	<div class="f-cb"></div>
</div>
<?php $hook_list=ApiHook('hook_home');
if(!empty($hook_list)){
		foreach ($hook_list as $value) {
			echo $value;
		}
	}
 ?>

<div class="g-home-module s-home-module">
	<div class="u-title u-tt u-tt-md"> 系统信息 </div>
	<table class="m-table  m-table-row">
		<tbody>
			<tr>
				<td class="cola">程序版本：</td>
				<td  width="250"><?php echo $config['ABOUT']['VER']; ?></td>
				<td class="cola">服务器时间：</td>
				<td><?php echo date("Y-m-d G:i T",time());  ?></td>
			</tr>
			<tr>
				<td>本次登录时间：</td>
				<td>{$userInfo.logintime time="Y-m-d H:i:s"}</td>
				<td>本次登录	IP：</td>
				<td>{$userInfo.ip}</td>
			</tr>
            <!--
			<tr>
				<td>程序更新：</td>
				<td><button type="button" class="u-btn u-btn-sm">检测更新</button></td>
				<td>授权查询：</td>
				<td><button type="button" class="u-btn u-btn-sm">查询授权</button></td>
			</tr>
            -->
			<tr>
				<td style="border-bottom:none">系统工具：</td>
				<td style="border-bottom:none" colspan="3"><button type="button" id="sysinfo" class="u-btn u-btn-c4 u-btn-sm">环境信息</button>
					&nbsp;&nbsp;
					<button type="button" id="sysbom" class="u-btn u-btn-c4 u-btn-sm">BOM清除</button></td>
			</tr>
		</tbody>
	</table>
</div>
<div class="g-home-module s-home-module">
	<div class="u-title u-tt u-tt-md"> 系统帮助 </div>
	<table class="m-table  m-table-row">
		<tbody>
			<tr>
				<td class="cola" h>官方主页：</td>
				<td  width="250"><a href="http://www.duxcms.com" target="_blank">www.duxcms.com</a></td>
				<td class="cola">官方论坛：</td>
				<td><a href="bbs.duxcms.com" target="_blank">bbs.duxcms.com</a></td>
			</tr>
			<tr>
				<td>BUG反馈：</td>
				<td><a target="_blank" href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=KRsdHRobERERGWlYWAdKRkQ" style="text-decoration:none;"><img src="__PUBLIC__/images/email.png"/></a></td>
				<td>QQ群：</td>
				<td><a target="_blank" href="http://wp.qq.com/wpa/qunwpa?idkey=e7f5dc81d68fd0c28f8ce02937303faf72aaa01131a2e25215a0e911e3b7039b"><img border="0" src="__PUBLIC__/images/qqgroup.png" alt="DUX产品交流群" title="DUX产品交流群"></a></td>
			</tr>
			<tr>
				<td style="border-bottom:none">开发团队：</td>
				<td style="border-bottom:none">独享网络小组 (DUX Group)</td>
				<td style="border-bottom:none">帮助手册：</td>
				<td style="border-bottom:none"><a href="http://help.duxcms.com" target="_blank">help.duxcms.com</a></td>
			</tr>
			
		</tbody>
	</table>
</div>
</body>
<script>
Do.ready('base','icofont','dialog', function() {
	$('#sysinfo').click(function(){
		art.dialog.open('{$url(index/sysinfo)}', {title: '环境信息',width:640,  height:480});
	});
	$('#sysbom').click(function(){
		ajaxpost({
		name:'本操作可能需要一些时间，请确认清除BOM！',
		url:"{$url(index/sysbom)}",
		tip:1
	});
	});
	
});
</script>